/**
 * 
 */
package com.ccqlk.attendance.controller.manage.company;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ccqlk.attendance.common.page.PageRequest;
import com.ccqlk.attendance.controller.manage.AbstractManageController;
import com.ccqlk.attendance.model.Worktime;
import com.ccqlk.attendance.repository.service.WorktimeService;
import com.github.pagehelper.PageInfo;

/**
 * Copyright 2015-2018 重庆鲁控科技有限公司<br>
 * 文件标题: WorktimeManageController<br>
 * 文件说明: 上下班时间管理<br>
 * @author ZhangYinxian 348893009@qq.com<br>
 * 创建时间 2016年5月27日 上午9:03:45<br>
 */
@Controller
@RequestMapping("manage/company/worktime")
public class WorktimeManageController extends AbstractManageController<Worktime, Integer> {

	private WorktimeService worktimeService;
	
	@Autowired
	public WorktimeManageController(WorktimeService worktimeService) {
		super(worktimeService, "manage/company/worktime/", "worktime");
		this.worktimeService = worktimeService;
	}

	/* (non-Javadoc)
	 * @see com.ccqlk.attendance.controller.manage.AbstractManageController#getData(com.ccqlk.attendance.common.page.PageRequest, javax.servlet.http.HttpServletRequest, org.springframework.ui.Model, boolean)
	 */
	@Override
	public PageInfo<Worktime> getData(PageRequest pageRequest, HttpServletRequest request, Model model, boolean pageable) {
		return worktimeService.selectAll(pageRequest);
	}

	

}
